using System;

namespace Recast
{
	public unsafe partial class RecastGlobal
	{
		public unsafe partial struct rcPolyMesh : IDisposable
		{
			public ushort* verts;
			public ushort* polys;
			public ushort* regs;
			public ushort* flags;
			public byte* areas;
			public int nverts;
			public int npolys;
			public int maxpolys;
			public int nvp;
			public fixed float bmin[3];
			public fixed float bmax[3];
			public float cs;
			public float ch;
			public int borderSize;
			public float maxEdgeError;

			public void Dispose()
			{
				rcFree(verts);
				rcFree(polys);
				rcFree(regs);
				rcFree(flags);
				rcFree(areas);
			}
		}
	}
}
